package com.xb.cloud.product.service.business.model.mapper;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.xb.cloud.common.model.PageParam;
import com.xb.cloud.product.merchant.service.client.bo.ShopPromotionSkuBo;
import com.xb.cloud.product.service.business.model.ShopPromotionSku;
import com.xb.cloud.product.service.business.model.ShopPromotionSkuExample;

public interface ShopPromotionSkuMapper {
	long countByExample(ShopPromotionSkuExample example);

	int deleteByExample(ShopPromotionSkuExample example);

	int deleteByPrimaryKey(Long id);

	int insert(ShopPromotionSku record);

	int insertSelective(ShopPromotionSku record);

	List<ShopPromotionSku> selectByExample(ShopPromotionSkuExample example);

	ShopPromotionSku selectByPrimaryKey(Long id);

	int updateByExampleSelective(@Param("record") ShopPromotionSku record,
			@Param("example") ShopPromotionSkuExample example);

	int updateByExample(@Param("record") ShopPromotionSku record, @Param("example") ShopPromotionSkuExample example);

	int updateByPrimaryKeySelective(ShopPromotionSku record);

	int updateByPrimaryKey(ShopPromotionSku record);

	int createShopPromotionSkuBatch(List<ShopPromotionSku> shopPromotionSkuList);

	/**
	 * @Title deleteShopPromotionSkuBatch
	 * @param ids
	 */
	void deleteShopPromotionSkuBatch(Long[] ids);

	/**
	 * @Title selectByExamplePaged
	 * @param examplePaged
	 * @return
	 */
	List<ShopPromotionSkuBo> selectByExamplePaged(@Param("record") ShopPromotionSku record, @Param("pageParam") PageParam pageParam);

}